#include <iostream>
#include <vector>
#include <iterator>

using namespace std;

template < typename type >
int count (const vector<type> & vec, type value )
{
	int num = 0;
	
	vector<type>::const_iterator iter = vec.begin();
/*	
	while ( iter != vec.end() )
	{
		if ( *iter == value ) count++;
		iter++;
	}
*/
	return count;
}
		
